define(['angular'], function(angular) {
    angular.module('filter', [])
        .filter('formatDate', [function() {
            return function(input) {
            	var returnDate = "";
            	if(input != "" && input != null && input != 'null'){
            		returnDate = input.substring(0,4) + "年" + input.substring(4,6) + "月" + input.substring(6,8) + "日";
            	}
            	return returnDate;
            };
        }])
        .filter('filterHtml', ['$sce',function($sce) {
            return function(input) {
                return $sce.trustAsHtml(input);
            };
        }])
        
		;

});